package sample.teacher;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

public class Teacher extends Application {
    String username;
    String passsword;
    public Teacher(String u,String p){
        username=u;
        passsword=p;
    }
    public Teacher(){

    }
    public void start(Stage primaryStage) throws  Exception{
        try{
            Parent root  = FXMLLoader.load(getClass().getResource("/fxml/teacher.fxml"));
            Scene sc;
            sc = new Scene(root,705,446);
            primaryStage.setScene(sc);
            primaryStage.setTitle("老师端");
            primaryStage.setResizable(false);
            primaryStage.show();
        }catch (Exception e){
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        launch(args);
    }
}
